#include "Memento.h"

using namespace std;

int main(int argc, char *argv[])
{
    Originator *originator = new Originator("Super-duper-super-puper-super.");
    Caretaker  *caretaker  = new Caretaker(originator);
    caretaker->backup();
    originator->doSomething();

    caretaker->backup();
    originator->doSomething();

    caretaker->backup();
    originator->doSomething();

    caretaker->showHistory();
    caretaker->undo();
    caretaker->undo();

    delete originator;
    delete caretaker;
    return 0;
}